﻿using Galaxy.Libra.DapperExtensions.DBBuilder.MySQL;
using System;
using System.Collections.Generic;
using System.Text;

namespace Galaxy.Libra.DapperExtensions.DBBuilder
{
    public interface IDataBaseQueryer
    {
        IEnumerable<string> ShowDataBases();

        IEnumerable<string> ShowTables(string dbName);

        /// <summary>
        /// column meta ，取决于数据库返回的 show columns from t_table 格式
        /// </summary>
        /// <param name="dbName"></param>
        /// <param name="tableName"></param>
        /// <returns></returns>
        IEnumerable<object> ShowColumns(string dbName, string tableName);
    }
}
